package ModelLayer;

public class Gearbox extends Product 
{
	private String gearboxType;
	private int gearAmount;
	
	
	//Constructor which catches the superclass attributes
	public Gearbox()
	{
		super();
	}
	
	//Constructor which builds the gearbox object
	public Gearbox(int productNumber, int serialNumber, String productName, double purchasePrice,	double salesPrice, double rentPrice, String countryOfOrigin, String fabricant, String description, String carModel, int modelYear, int minStock, int maxStock, String gearboxType, int gearAmount, Supplier supplier, Store store, Amount pAmount)
	{
		super(productNumber, serialNumber, productName, purchasePrice, salesPrice, rentPrice, countryOfOrigin, fabricant, description, carModel, modelYear, minStock, maxStock, gearboxType, supplier, store, pAmount);
	
		this.gearboxType = gearboxType;
		this.gearAmount = gearAmount;
	}

	//Returns the gearbox type
	public String getGearboxType() 
	{
		return gearboxType;
	}

	//Sets the gearbox type
	public void setGearboxType(String gearboxType) 
	{
		this.gearboxType = gearboxType;
	}

	//Returns the gear amount
	public int getGearAmount() 
	{
		return gearAmount;
	}

	//Sets the gear amount
	public void setGearAmount(int gearAmount) 
	{
		this.gearAmount = gearAmount;
	}
	
	//Returns the product type 
	public String getProductType()
	{
		return "Gearbox";
	}
	

	

}